import request from '@/utils/request'

export function list(params) {
  return request({
    url: '/admin/sysReport/list',
    method: 'get',
    params: params
  })
}

export function find(id) {
  return request({
    url: '/admin/sysReport/find/' + id,
    method: 'get',
  })
}

export function findCategory(id) {
  return request({
    url: '/admin/sysReportCategory/find/' + id,
    method: 'get',
  })
}

export function save(data) {
  return request({
    url: '/admin/sysReport/save',
    method: 'post',
    data: data
  })
}

export function del(id) {
  return request({
    url: '/admin/sysReport/del/' + id,
    method: 'post',
    ids: id
  })
}

export function update(data) {
  return request({
    url: '/admin/sysReport/update',
    method: 'post',
    data: data
  })
}


